package com.shjn.squirrel.bean.httpBean;

import java.util.Map;

/**
 * 通用返回参数
 */
public class RespCommonResult {

    private int stateCode;//状态码（1-成功，0-失败）
    private String errorMessage;//提示信息
    private Map<String,Object> result;//返回结果

    public RespCommonResult() {
    }

    public RespCommonResult(int stateCode, String errorMessage, Map<String, Object> result) {
        this.stateCode = stateCode;
        this.errorMessage = errorMessage;
        this.result = result;
    }

    public int getStateCode() {
        return stateCode;
    }

    public void setStateCode(int stateCode) {
        this.stateCode = stateCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public Map<String, Object> getResult() {
        return result;
    }

    public void setResult(Map<String, Object> result) {
        this.result = result;
    }

    @Override
    public String toString() {
        return "RespCommonResult{" +
                "stateCode=" + stateCode +
                ", errorMessage='" + errorMessage + '\'' +
                ", result=" + result +
                '}';
    }
}
